package com.fjnu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.fjnu.dao.IAdministratorDao;
import com.fjnu.dao.impl.AdministratorDao;
import com.fjnu.entities.Administrator;
import com.fjnu.service.AdministratorService;
@Service
@Transactional(propagation=Propagation.REQUIRED)
public class AdministratorServiceImpl implements AdministratorService {

	@Autowired
	private  IAdministratorDao administratorDao;
	
	public void addAdminService(Administrator administrator) {
		administratorDao.addAdmin(administrator);

	}

}
